package net.lesscoding.message;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @author eleven
 * @date 2024/10/31 16:07
 * @apiNote
 */
@Data
@NoArgsConstructor
@ToString(callSuper = true)
public class ChatResponseMessage extends AbstractResponseMessage{

    private String from;

    private String content;

    public ChatResponseMessage( String from, String content) {
        super(true, "发送成功");
        this.from = from;
        this.content = content;
    }

    public ChatResponseMessage(Boolean success, String reason) {
        super(success, reason);
    }

    @Override
    public int getMessageType() {
        return CHAT_RESPONSE;
    }
}
